package app.modules.menu.dto.web.menu;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mh.z
 */
@Schema(title = "菜单保存DTO")
public class WebMenuSaveDTO {

    @Schema(title = "模板ID")
    private Long templateId;

    @Schema(title = "父菜单ID")
    private Long parentId;

    @Length(max = 50)
    @NotEmpty
    @Schema(title = "菜单代码")
    private String menuCode;

    @Length(max = 20)
    @NotEmpty
    @Schema(title = "菜单名称")
    private String menuName;

    @Length(max = 50)
    @Schema(title = "菜单图标")
    private String menuIcon;

    @Length(max = 500)
    @Schema(title = "菜单路径")
    private String menuPath;

    @Schema(title = "菜单序号")
    private Integer menuOrder;

    @Schema(title = "显示标志")
    private Boolean showFlag;

    @Length(max = 200)
    @Schema(title = "备注")
    private String remark;

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath;
    }

    public Integer getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    public Boolean getShowFlag() {
        return showFlag;
    }

    public void setShowFlag(Boolean showFlag) {
        this.showFlag = showFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
